<?php

class ShardQueryCustomFunctions {

	static $list = array (
		'percentile' => array( 'sort_input' => true, 'sort_direction' => 'asc', 'distinct' => true ),
	);

	static function register_all(&$parser) {
		foreach(ShardQueryCustomFunctions::$list as $key => $opts) {
			$parser->add_custom_function($key);
		}
	}

}
